package tech.aistar.corejava.day06.exercise1;

public class Animal {
	private String desc;

	public Animal() {
		//非静态方法都是省略了this关键字.
		//this其实指代的是当前对象 - worf对象.
		//this.desc = this.getDesc();
		this.desc = getDesc();
	}

	public String getDesc() {
		System.out.println("捣乱的...");
		return "Animal";
	}

	public String toString() {
		return desc;
	}
}
